package com.csdj.service.impl;

import com.csdj.mapper.StreamerMapper;
import com.csdj.pojo.Streamer;
import com.csdj.service.StreamerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StreamerServiceImpl implements StreamerService {
    @Autowired
    private StreamerMapper streamerMapper;
    @Override
    public Streamer queryStreamerByNickName(String nickName) {
        return streamerMapper.queryStreamerByNickName(nickName);
    }

    @Override
    public List<Streamer> queryStreamerByCateGory(Integer category) {
        return streamerMapper.queryStreamerByCateGory(category);
    }

    @Override
    public int addStreamer(Streamer streamer) {
        return streamerMapper.addStreamer(streamer);
    }

    @Override
    public int deleteStreamer(Integer id) {
        return streamerMapper.deleteStreamer(id);
    }
}
